package com.washmadam.service.common.thread;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ThreadPoolFactory {

    private static final int size = Runtime.getRuntime().availableProcessors();

    private static ExecutorService e = Executors.newFixedThreadPool(size);

    public static ExecutorService getFixPoolExecutorService(){
        return ThreadPoolFactory.e;
    }

}
